#!/bin/sh

# @author claudiugh 
# @description Script de verificare pentru tema 3 - PA


FIN='ratb.in'
FOUT='ratb.out'
SOL='ratb'
CHK='checker'

i=1
for file in "1-ratb.in" "2-ratb.in" "3-ratb.in" "4-ratb.in" "5-ratb.in";
do
    echo Test$i
    cp ./$file ./$FIN
    REFOUT=$i-ref-$FOUT
    time -f "Your time: %e seconds" make run 
    SOLOUT=$i-$FOUT
    mv ./$FOUT ./$SOLOUT
    ./$CHK ./$FIN ./$SOLOUT ./$REFOUT
    i=$((i+1))
    echo --------------------------------------------------
done
